package com.y.architecture.weather;


import com.y.architecture.base_net.BaseNet;

/**
 * Created by youjingjing on 2017/11/22.
 */

public class WeatherNet extends BaseNet<WeatherApi> {
    private static WeatherNet weatherNet;
    @Override
    protected String getDefaultBaseUrl() {
        return WeatherApi.BASE_URL;
    }

    public static WeatherNet getInstance() {
        if (weatherNet==null){
           synchronized (WeatherNet.class){
                if (weatherNet==null){
                    weatherNet = new WeatherNet();
                }
           }
        }
        return weatherNet;
    }
}
